package com.io.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * The class/interface
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
@Data
public class CarList {
    /**
     * 属性描述：年
     */
    @NotNull
    @ApiModelProperty(value = "年", name = "year", example = "20")
    private Integer year;

    /**
     * 属性描述：名称
     */
    @ApiModelProperty(value = "名称", name = "name", example = "宝马")
    private String name;

}
